/* gcc -lm -o t3 t3.c */

#include <stdio.h>
#include <math.h>


void main()
{
	int x,y;
	int i,m=0;
	int xx,yy;
	
	for(i=1;i<10000;i++)
	{
		x=(int)sqrt(i+100);
		y=(int)sqrt(i+268);
		xx=x*x;
		yy=y*y;
		//printf("i=%d xx=%d\n",i,xx);
		if ( (xx == (i+100)) && (yy == (i+268)) )
		{
			//printf("i=%d\n",i);
			m++;
			printf("i=%d  x=%d  y=%d x^2=%d  y^2=%d\n",i,x,y,xx,yy);
	  }	 
	}
	
	printf("total inum=%d\n",m);
}